package com.yj.web.util.Session;

/**
 * Created by yanlinyang on 2017/9/11.
 */
public interface InternalSessionManager {
    InternalSession findSession(String id);
    public InternalSession createSession(String sessionId);
    public void remove(InternalSession session);
    public void remove(InternalSession session, boolean update);
    void add(InternalSession session);
    int getActiveSessions();
    InternalSession createEmptySession();
    InternalSession[] findSessions();
    public void backgroundProcess();
    void setMaxInactiveInterval(int interval);
    void setProcessExpiresFrequency(int processExpiresFrequency);
    void setBackgroundProcessorDelay(int backgroundProcessorDelay);
    void setMaxActiveSessions(int max);
}
